package types

type UserRegisterReq struct {
	UserName        string `json:"userName" binding:"required,min=5,max=18"`
	NickName        string `json:"nickName"`
	Password        string `json:"password" binding:"required"`
	PasswordConfirm string `json:"passwordConfirm" binding:"eqfield=Password"`
	Email           string `json:"email" binding:"email"`
}

type UserLoginReq struct {
	LoginKey string `json:"loginKey" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type UserDataWithToken struct {
	ID       uint   `json:"id"`
	UserName string `json:"userName"`
	NickName string `json:"nickName"`
	Email    string `json:"email"`
	Token    string `json:"token"`
}
